#include <iostream>

using namespace std;

int main ()
{
    int y,m,d,days;

    cout<<"please enter the date of today"<<endl;
    cin>>y>>m>>d;

    switch(m) {
    case 2:
        if ((y%4==0&&y%100!=0)||(y%400==0))
        {
            days=29;
        }
        else
            days=28;

    case 4:
    case 6:
    case 9:
    case 11: days=30;

    default: days=31;
    }

    d++;
    if (d<=days)
    {
        cout<<"tomorrow is"<<y<<"year"<<m<<"month"<<d<<"day"<<endl;
    }
    else
    {
        d=1;
        m++;
        cout<<"tomorrow is"<<y<<"year"<<m<<"month"<<d<<"day"<<endl;
    }
    cin>>y;

    return 0;
}

// 基本的格式需要注意一下：
// 1. 在代码块之间插入空行，这样看上去比较清楚
// 2. 代码缩进，这样比较容易看懂层级关系
